package business;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import dao.UserDao;
import model.User;

@Repository
public class UserBusiness implements IUserBussines {

	@Autowired
	private UserDao userdao;

	@Override
	public boolean loguj(User user) {

		if (this.userdao.isPoprawny(user)) {
			return true;
		}
		return false;

	}

	@Override
	public List<User> getAllUsers() {
		return userdao.getAllUsers();
	}
}
